.class public Lcom/waiqin365/lightwork/tracker/ax;
.super Landroid/os/Handler;


# instance fields
.field final synthetic a:Lcom/waiqin365/lightwork/tracker/ao;

.field private b:Ljava/lang/ref/WeakReference;


# direct methods
.method public constructor <init>(Lcom/waiqin365/lightwork/tracker/ao;Lcom/waiqin365/lightwork/tracker/ao;)V
    .locals 1

    iput-object p1, p0, Lcom/waiqin365/lightwork/tracker/ax;->a:Lcom/waiqin365/lightwork/tracker/ao;

    invoke-direct {p0}, Landroid/os/Handler;-><init>()V

    new-instance v0, Ljava/lang/ref/WeakReference;

    invoke-direct {v0, p2}, Ljava/lang/ref/WeakReference;-><init>(Ljava/lang/Object;)V

    iput-object v0, p0, Lcom/waiqin365/lightwork/tracker/ax;->b:Ljava/lang/ref/WeakReference;

    return-void
.end method


# virtual methods
.method public handleMessage(Landroid/os/Message;)V
    .locals 4

    :try_start_0
    iget-object v0, p0, Lcom/waiqin365/lightwork/tracker/ax;->b:Ljava/lang/ref/WeakReference;

    invoke-virtual {v0}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightwork/tracker/ao;

    if-eqz v0, :cond_0

    iget v1, p1, Landroid/os/Message;->what:I

    sparse-switch v1, :sswitch_data_0

    :cond_0
    :goto_0
    return-void

    :sswitch_0
    iget-object v0, p0, Lcom/waiqin365/lightwork/tracker/ax;->a:Lcom/waiqin365/lightwork/tracker/ao;

    invoke-static {v0}, Lcom/waiqin365/lightwork/tracker/ao;->a(Lcom/waiqin365/lightwork/tracker/ao;)Lcom/baidu/mapapi/model/LatLng;

    move-result-object v0

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/waiqin365/lightwork/tracker/ax;->a:Lcom/waiqin365/lightwork/tracker/ao;

    iget-boolean v0, v0, Lcom/waiqin365/lightwork/tracker/ao;->f:Z

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/waiqin365/lightwork/tracker/ax;->a:Lcom/waiqin365/lightwork/tracker/ao;

    invoke-static {v0}, Lcom/waiqin365/lightwork/tracker/ao;->a(Lcom/waiqin365/lightwork/tracker/ao;)Lcom/baidu/mapapi/model/LatLng;

    move-result-object v0

    invoke-static {v0}, Lcom/baidu/mapapi/map/MapStatusUpdateFactory;->newLatLng(Lcom/baidu/mapapi/model/LatLng;)Lcom/baidu/mapapi/map/MapStatusUpdate;

    move-result-object v0

    if-eqz v0, :cond_1

    iget-object v1, p0, Lcom/waiqin365/lightwork/tracker/ax;->a:Lcom/waiqin365/lightwork/tracker/ao;

    iget-object v1, v1, Lcom/waiqin365/lightwork/tracker/ao;->b:Lcom/baidu/mapapi/map/BaiduMap;

    if-eqz v1, :cond_1

    iget-object v1, p0, Lcom/waiqin365/lightwork/tracker/ax;->a:Lcom/waiqin365/lightwork/tracker/ao;

    iget-object v1, v1, Lcom/waiqin365/lightwork/tracker/ao;->b:Lcom/baidu/mapapi/map/BaiduMap;

    invoke-virtual {v1, v0}, Lcom/baidu/mapapi/map/BaiduMap;->animateMapStatus(Lcom/baidu/mapapi/map/MapStatusUpdate;)V

    :cond_1
    iget-object v0, p0, Lcom/waiqin365/lightwork/tracker/ax;->a:Lcom/waiqin365/lightwork/tracker/ao;

    const/4 v1, 0x0

    iput-boolean v1, v0, Lcom/waiqin365/lightwork/tracker/ao;->f:Z

    goto :goto_0

    :catch_0
    move-exception v0

    goto :goto_0

    :sswitch_1
    iget-object v0, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

    check-cast v0, Lcom/baidu/mapapi/map/Marker;

    iget v1, p1, Landroid/os/Message;->arg1:I

    iget v2, p1, Landroid/os/Message;->arg2:I

    if-eqz v0, :cond_0

    iget-object v3, p0, Lcom/waiqin365/lightwork/tracker/ax;->a:Lcom/waiqin365/lightwork/tracker/ao;

    invoke-static {v3, v0, v1, v2}, Lcom/waiqin365/lightwork/tracker/ao;->a(Lcom/waiqin365/lightwork/tracker/ao;Lcom/baidu/mapapi/map/Marker;II)Z

    goto :goto_0

    :sswitch_2
    invoke-static {v0}, Lcom/waiqin365/lightwork/tracker/ao;->b(Lcom/waiqin365/lightwork/tracker/ao;)V

    iget-object v1, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

    check-cast v1, Lcom/waiqin365/lightwork/tracker/b/n;

    invoke-virtual {v1}, Lcom/waiqin365/lightwork/tracker/b/n;->b()Z

    move-result v2

    if-eqz v2, :cond_3

    invoke-virtual {v1}, Lcom/waiqin365/lightwork/tracker/b/n;->a()Ljava/lang/String;

    move-result-object v2

    if-eqz v2, :cond_2

    invoke-virtual {v1}, Lcom/waiqin365/lightwork/tracker/b/n;->a()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/String;->length()I

    move-result v2

    if-lez v2, :cond_2

    invoke-virtual {v0}, Lcom/waiqin365/lightwork/tracker/ao;->getActivity()Landroid/support/v4/app/FragmentActivity;

    move-result-object v0

    invoke-virtual {v1}, Lcom/waiqin365/lightwork/tracker/b/n;->a()Ljava/lang/String;

    move-result-object v1

    const/4 v2, 0x0

    invoke-static {v0, v1, v2}, Lcom/waiqin365/lightapp/view/dk;->a(Landroid/content/Context;Ljava/lang/CharSequence;I)V

    goto :goto_0

    :cond_2
    invoke-virtual {v1}, Lcom/waiqin365/lightwork/tracker/b/n;->c()Ljava/util/ArrayList;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightwork/tracker/ao;->b(Ljava/util/ArrayList;)V

    iget-object v0, p0, Lcom/waiqin365/lightwork/tracker/ax;->a:Lcom/waiqin365/lightwork/tracker/ao;

    invoke-virtual {v0}, Lcom/waiqin365/lightwork/tracker/ao;->a()V

    new-instance v0, Lcom/waiqin365/lightwork/tracker/ay;

    invoke-direct {v0, p0}, Lcom/waiqin365/lightwork/tracker/ay;-><init>(Lcom/waiqin365/lightwork/tracker/ax;)V

    invoke-virtual {v0}, Lcom/waiqin365/lightwork/tracker/ay;->start()V

    goto :goto_0

    :cond_3
    invoke-virtual {v0}, Lcom/waiqin365/lightwork/tracker/ao;->getActivity()Landroid/support/v4/app/FragmentActivity;

    move-result-object v0

    iget v1, v1, Lcom/waiqin365/lightwork/tracker/b/n;->a:I

    invoke-static {v0, v1}, Lcom/waiqin365/lightapp/view/dk;->a(Landroid/content/Context;I)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto/16 :goto_0

    nop

    :sswitch_data_0
    .sparse-switch
        0x9 -> :sswitch_2
        0x123 -> :sswitch_1
        0x124 -> :sswitch_0
    .end sparse-switch
.end method
